package com.gambi.example.client.chatter.services;

import java.util.List;

import com.gambi.example.client.chatter.model.Contact;
import com.gambi.example.client.chatter.model.Message;
import com.google.gwt.user.client.rpc.RemoteService;

public interface MessengerService extends RemoteService {
	void signIn(String name);

	void signOut();

	void sendMessage(Contact to, Message message);

	// For Hanging (comet-like) event based protocols in GWT
	/**
	 * @gwt.typeArgs <se.pmdit.tutorial.t5gwt.client.chatter.events.Event>
	 */
	List getEvents();

}
